#include "cstring.h"
#define ABC 1

void strTest(){
    char str1[14] = "csltud";
    char str2[14] = "google";
    char str3[2];
    char *str4 = "string pointer";
    int len;

    printf("%d\n",str1);
    printf("%d\n",str2);
    printf("%d\n",str3);

    strcpy(str3,str1);
    printf("strcpy res: %s\n",str3);

    #ifdef ABC
    strcat(str1,str2);
    printf("strcat res: %s\n",str1);

    len = strlen(str1);
    printf("strlen res: %d\n",len);

    printf("%s\n",str4);
    #endif

    return;
}

void  strlenTest(){
    char   str1[6] = "12345";
    printf("str1 len is %u",strlen(str1));
    if (strlen(str1) > 6 ) {
        printf("str1 len > 6");
    }else{
        printf("str1 len < 6");
    }
}